import re
from python_baway.common.xcommon import xshow_table

xtext = '''\
/usr/sbin/sendmail - 0 errors, 4 warnings
C:\\tmp\\.nomedia - 10 errors, 2 warnings
/usr/local/bin/pip3.9.py - 1 errors, 0 warnings
'C:\\Program Files\\abc' - 0 errors, 2 warnings
'''

xregexp = re.compile(r'^\s*((["\']?)(.+?)\2 - (\d+) errors, (\d+) warnings)\s*$', re.MULTILINE)
xtuples = xregexp.findall(xtext)
xshow_table(xtuples)
